package com.qiuling.iot.rabbit;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.connection.CorrelationData;
import org.springframework.amqp.rabbit.core.RabbitTemplate;

/**
 * @Author：zhangqiang
 * @Description：
 * @Date：Created in 0:30 2020/3/6
 * @Modified By：
 */
@Slf4j
public class RabbitConfirmCallBack implements RabbitTemplate.ConfirmCallback {

    @Override
    public void confirm(CorrelationData correlationData, boolean ack, String cause) {
        log.info("消息唯一标识:({}), 确认状态:({}), 原因:({})", correlationData, ack, cause);
    }


}
